//
//import (
//	"api-getwary/basic/globar"
//	__ "api-getwary/basic/proto"
//	"flag"
//	"google.golang.org/grpc"
//	"google.golang.org/grpc/credentials/insecure"
//	"log"
//)
//
//func InitGrpc() {
//	flag.Parse()
//	// Set up a connection to the server.
//	conn, err := grpc.NewClient("127.0.0.1:50051", grpc.WithTransportCredentials(insecure.NewCredentials()))
//	if err != nil {
//		log.Fatalf("did not connect: %v", err)
//	}
//	globar.Clients = __.NewUserClient(conn)
//
//}
package inits

import (
	"api-getwary/basic/globar"
	"flag"
	"log"

	__ "api-getwary/basic/proto"
	"google.golang.org/grpc"
	"google.golang.org/grpc/credentials/insecure"
)

func InitGrpc() {
	flag.Parse()
	// Set up a connection to the server.
	conn, err := grpc.NewClient("127.0.0.1:50051", grpc.WithTransportCredentials(insecure.NewCredentials()))
	if err != nil {
		log.Fatalf("did not connect: %v", err)
	}

	globar.Client = __.NewUserClient(conn)

	// Contact the server and print out its response.

}
